package com.suse.service.view.order.feign;

import com.suse.model.dto.CourseDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * <p>
 * 前台课程服务远程调用
 * </p>
 *
 * @author 辜玉彬
 * @since 2022-08-20 15:07
 */
@Service
@FeignClient(value = "service-view-edu")
public interface ViewCourseService {

    @GetMapping("/dev-api/view/edu/course/inner/dto/{id}")
    CourseDto getCourseDtoById(@PathVariable("id") String id);

}
